<template>
  <div class="dashboard-container">

    首页
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
// import PanelGroup from './components/PanelGroup'
import { getStatistics } from '@/api/user'

export default {
  name: 'Dashboard',
  components: {
    // PanelGroup
  },
  data() {
    return {
      statistics: {}
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  created() {
    this.search()
  },
  methods: {
    search() {
      getStatistics().then(res => {
        this.statistics = res.data.statistics
      }).catch(err => {
        console.log(err)
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }

  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
